package com.example.hrmsaas.system.utils.vo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.example.hrmsaas.system.entity.User;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Collection;

@Entity
@Data
@EqualsAndHashCode(callSuper = false)//父类中如果加入了@Data注解，所以要加上@EqualsAndHashCode注解
public class UserVo extends User implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 分页参数
     */
    private Integer page = 1;
    private Integer limit = 10;


    @TableField(exist = false)
    private Collection<Serializable> deptId;

    public Collection<Serializable> getUserIds() {
        return userIds;
    }

    public void setUserIds(Collection<Serializable> userIds) {
        this.userIds = userIds;
    }

    @TableField(exist = false)
    private Collection<Serializable> userIds;

    public Collection<Serializable> getDeptId() {
        return deptId;
    }

    public void setDeptId(Collection<Serializable> deptId) {
        this.deptId = deptId;
    }

    @TableField(exist = false)
    private Integer hasDepartment;
}


